//
//  CatMessageModel.m
//  DoorBell
//
//  Created by Chun Hung Cheung on 2023/3/22.
//  Copyright © 2023 Chun Hung Cheung. All rights reserved.
//

#import "CatMessageModel.h"

@implementation CatMessageModel
- (instancetype)initWithTime:(NSString*)time type:(int)type
{
    if(self = [super init])
    {
        self.time = time;
        self.type = type;
        switch (type) {
            case 101:
            {
                self.title = NSLocalizedString(@"出食阻塞", nil);
            }
                break;
            case 102:
            {
                self.title = NSLocalizedString(@"食物不足", nil);
            }
                break;
            case 103:
            {
                self.title =  NSLocalizedString(@"宠食用光", nil);
            }
                break;
            case 104:
            {
                self.title = NSLocalizedString(@"干燥剂耗尽", nil);
            }
                break;
            case 105:
            {
                self.title = NSLocalizedString(@"喂食器卡粮", nil);
            }
                break;
            case 5:
            {
                self.title = NSLocalizedString(@"电量不足", nil);
            }
                break;
               
            default:
                break;
        }

    }
    return self;
}
@end
